﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TopicTdc.ascx.cs" Inherits="Lenovo.CFI.Web.VP.TopicTdc" %>
<%@ Register src="../../UserControls/AsyncFileUpload.ascx" tagname="AsyncFileUpload" tagprefix="afu" %>
<tbwc:StyleSheetControl ID="SscList" runat="server" CssPath="detail.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscDp" runat="server" CssPath="DatePicker/datepicker.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SccAc" runat="server" CssPath="VP/autocomplete.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscThis" runat="server" CssPath="VP/topic/topicedit.css"></tbwc:StyleSheetControl>

<ajaxToolkit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" CombineScripts="false" ID="ScriptManager1" >
    <Services>
        <asp:ServiceReference  Path="~/WS/AjaxUser.asmx" />
    </Services>
    <Scripts>
        <asp:ScriptReference Path="~/js/jquery-1.4.2.js" />
        <asp:ScriptReference Path="~/js/jquery.autocomplete.js" />
    </Scripts>
</ajaxToolkit:ToolkitScriptManager>

<script type="text/javascript">
    function FileUploadComplete(sender, args) {
        setTimeout("__doPostBack('<%= AfuFile.UpdateUniqueID %>','')", 0);

        alert(args.get_fileName() + " upload successfully!");
    }
</script>


<div class="wrapper">

    <tbwc:Fieldset ID="FsTopic" runat="server" DesignWidth="1240px" CssClass="topic" GroupingText="Edit Topic">

        <div class="line"><asp:Label ID="LblTitle" runat="server" AssociatedControlID="TxtTitle" Text="Title:" CssClass="title"></asp:Label><asp:Label 
            ID="TxtTitle" runat="server" CssClass="readvalue"></asp:Label></div>

        <div class="line"><asp:Label ID="LblNo" runat="server" AssociatedControlID="TxtNo" Text="No:" CssClass="title"></asp:Label><asp:Label 
            ID="TxtNo" runat="server" CssClass="readvalue"></asp:Label></div>

        <div class="line"><asp:Label ID="LblType" runat="server" AssociatedControlID="TxtType" Text="Type:" CssClass="title"></asp:Label><asp:Label 
            ID="TxtType" runat="server" CssClass="readvalue"></asp:Label></div>

        <div class="line"><asp:Label ID="LblTdc" runat="server" AssociatedControlID="TxtTdc" Text="T-DC:" CssClass="title"></asp:Label><asp:Label 
            ID="TxtTdc" runat="server" CssClass="readvalue"></asp:Label></div>

        <div class="line"><asp:Label ID="LblFile" runat="server" AssociatedControlID="AfuFile" Text="PPT:" CssClass="title"></asp:Label>
            <afu:AsyncFileUpload ID="AfuFile" runat="server" RenderMode="Inline"
                CssClass="afu" Width="35em" ShowFileLink="true"
                OnClientUploadComplete="FileUploadComplete" /></div>

        <div class="line"><asp:Label ID="LblStart" runat="server" AssociatedControlID="TxtStart" Text="Start Date:" CssClass="title"></asp:Label><asp:Label 
            ID="TxtStart" runat="server" CssClass="readvalue"></asp:Label></div>

        <div class="line"><asp:Label ID="LblDeadline" runat="server" AssociatedControlID="TxtDeadline" Text="Deadline Date:" CssClass="title"></asp:Label><asp:Label 
            ID="TxtDeadline" runat="server" CssClass="readvalue"></asp:Label></div>

        <div class="line"><asp:Label ID="LblReview" runat="server" AssociatedControlID="TxtReview" Text="Review Date:" CssClass="title"></asp:Label><asp:Label 
            ID="TxtReview" runat="server" CssClass="readvalue"></asp:Label></div>
    </tbwc:Fieldset>

    <div class="operation" style="padding:8px 0px 8px 16em"><asp:Button ID="BtnSave" 
            runat="server" CssClass="primary" Text="Submit" onclick="BtnSave_Click"/></div>
</div>
